package com.oxygen.pt.pojo.vo;

import cn.hutool.core.bean.BeanUtil;
import com.oxygen.pt.pojo.entity.Patient;
import com.oxygen.pt.pojo.entity.TreatmentDetail;
import lombok.Data;
import lombok.EqualsAndHashCode;


@Data
public class PatientDetailVO {
    /**
     * 1 患者情
     */
    private Long patientId;
    //患者姓名
    private String name;
    //患者年龄
    private long age;
    //患者手机号
    private String phone;
    //患者性别
    private int gender;
    //费别
    private String costType;
    //人员种类
    //private long personType;

    /**
     * 2 诊断与治疗计划
     */
    //诊断信息-疾病诊断
    private String diagnosisInfo;
    //治疗方案描述
    private String treatmentPlan;
    //计划治疗次数
    private long planSessions;
    //计划治疗压力
    //private double planPressure;

    /**
     * 3 治疗状态与进展
     */
    private long completedSessions;
    private long remainingSessions;
    private java.sql.Timestamp lastTreatmentDate;
    private long lastChamberNumber;

    /**
     * 通过该成员方法来获取到相应 患者的患者详情VO
     * @param patient 患者实体类
     * @param treatmentDetail  治疗状态与进展实体类
     * @return 患者详情VO
     */
    public static PatientDetailVO detailBuilder(Patient patient, TreatmentDetail treatmentDetail){
        PatientDetailVO patientDetailVO = new PatientDetailVO();
        //进行属性复制
        BeanUtil.copyProperties(patient,patientDetailVO);
        BeanUtil.copyProperties(treatmentDetail,patientDetailVO);
        return patientDetailVO;
    }



}
